package com.example.java3s1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.CacheManager;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//@EnableCaching
@EnableSwagger2
@SpringBootApplication
public class Java3s1Application {

    public static void main(String[] args) {
        SpringApplication.run(Java3s1Application.class, args);
    }

    //@Bean
    public CacheManager cacheManager(){
        ConcurrentMapCacheManager cacheManager = new ConcurrentMapCacheManager();

        return cacheManager;
    }
}
